# $Id: PKGBUILD 65728 2012-02-22 12:08:02Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-app-cli
pkgver=0.313
pkgrel=2
pkgdesc="Perl/CPAN Module App::CLI"
arch=("any")
url="http://search.cpan.org/dist/App-CLI"
license=("GPL" "PerlArtistic")
depends=("perl")
source=("http://search.cpan.org/CPAN/authors/id/C/CO/CORNELIUS/App-CLI-$pkgver.tar.gz")
md5sums=('efe1a2287c8447fb46e9f43594c3ce28')

build() {
  cd $srcdir/App-CLI-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd $srcdir/App-CLI-$pkgver
  make pure_install doc_install DESTDIR=$pkgdir
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
